package concurrency.locksperformance.implementations;


import concurrency.locksperformance.Counter;

public class Volatile implements Counter {
    private volatile long counter;

    public long getCounter() {
        return counter;
    }

    public void increment() {
        ++counter;
    }
}